{% extends "account/base.html" %}
{% block content %}
<div class="flex-center">
  <div class="container">
    <div class="flex-center">
      <div class="unit-1-2 unit-1-on-mobile">

        <h3>登录</h3>

        <form class="form" action="{% url 'account_login' %}" method="post">
          {% csrf_token %} {{ form.as_p }}
          <button type="submit" class="btn btn-primary btn-block">登录</button>
          <input type="hidden" name="next" value="{{ next }}" />
        </form>

        <div class="flex-left top-gap text-small">
          <div class="unit-2-3">
            <span>没有账号？
              <a href="{% url 'account_signup' %}">立即注册</a>
            </span>
          </div>
          <div class="unit-1-3 flex-right">
            <span>
              <a href="{% url 'account_reset_password' %}">忘记密码？</a>
            </span>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

{% endblock %}